package com.bjpowernode.app;

import java.util.LinkedList;

public class MyApp2 {
    public static void main(String[] args) {

        LinkedList<Integer> ids = new LinkedList<>();
        for (int i = 1000; i <= 1010; i++) {
            ids.add(i);
        }
        //取一个【添加】
        Integer integer = ids.removeFirst();
        System.out.println(integer);
        System.out.println("**********************************");
        for (Integer id : ids) {
            System.out.println(id);
        }
        //删除一个【删除】
        ids.addFirst(1000);
        System.out.println("**********************************");
        for (Integer id : ids) {
            System.out.println(id);
        }



    }
}
